package Shared;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * GROUPE 1
 */
public class _Config {
    
//+----------------------------------------------------------------------+
//| VARIABLES SERVEUR
//+----------------------------------------------------------------------+
    public static String ORB_host = "127.0.0.1";
    public static String ORB_port = "2000";
    public static String ORB_services = "NameService";
    
    public static String RMI_host = "localhost";
    public static Integer RMI_port = 2001;
    
    public static String REST_host = "aurelie-laptop";
    public static String REST_port = "8081";
    
    public static String party_manager = "PartyService";
    public static String callback = "Callback";
    public static String user_manager = "UserManager";
    
//+----------------------------------------------------------------------+
//| CONSTANTES DU PROJET
//+----------------------------------------------------------------------+    
    public static final ArrayList<Card> jeuDeCarte = new ArrayList<Card>();
    static {
	for(String enseigne : Arrays.asList("coeur", "pique", "trefle", "carreau") ) {
	    int i = 1;
	    for(String valeur : Arrays.asList(
		    "7", "8", "9", "10",
		    "valet", "dame", "roi", "as"
	    )) {
		jeuDeCarte.add(new Card(valeur, enseigne, i)); i++;
	    }
	}
    };

    public static final int PARTY_ATTENTE=0, PARTY_ENCOURS=1, PARTY_FINIE=2;
    public static final int MENU_ACCUEIL=0, MENU_PLAY=1, MENU_PARTY=2;
    public static final int MENU_LOGIN=1, MENU_CREERUSER=2;
}
